<include file="public/header" title="个人中心" body="g4"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<style>
    .my .content .floor_order ul li {
        width: 25%;
    }
    .myhearder .person .lors{
    	overflow: auto!important;
    }
</style>
    <div class="myhearder">
        <div class="person">
            <a href="">
                <div class="fl personicon">
                    <div class="personicon">
                        <img src="{$user[head_pic]|default="__STATIC__/images/user68.jpg"}"/>
                    </div>
                </div>
                <div class="fl lors">
                    <span>{$user['nickname']}</span>
                    <!--<span>{$level_name}</span>-->
<!--                     <if condition="$first_nickname neq ''">
                        <br />
                        <span style="font-size:20px">由({$first_nickname})推荐</span>
                    </if> -->
                </div>
            </a>
        </div>
        <div class="set">
            <!--设置-->
            <a class="setting" href="{:U('Mobile/User/userinfo')}"><i></i></a>
            <!--&lt;!&ndash;我的留言&ndash;&gt;-->
            <!--<a class="massage" href="{:U('User/message_notice')}"><i></i></a>-->
        </div>
        <div class="scgz">
            <ul>
                <li>
                    <a href="{:U('Mobile/User/collect_list')}">
                        <h2>{$user.collect_count}</h2>
                        <p>我的收藏</p>
                    </a>
                </li>
                <li>
                    <a href="{:U('Mobile/User/message_notice')}">
                        <h2>{$user_message_count}</h2>
                        <p>消息通知</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <div class="floor my p">
        <div class="content">
            <!--订单管理模块-s-->
            <div class="floor myorder ma-to-20 p">
                <div class="content30">
                    <div class="order">
                        <div class="fl">
                            <img src="__STATIC__/images/mlist.png"/>
                            <span>我的订单</span>
                        </div>
                        <div class="fr">
                            <a href="{:U('Mobile/User/order_list')}">
                                <span>全部订单</span>
                                <i class="Mright"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="floor floor_order">
                <ul>
                    <li>
                        <a href="{:U('/Mobile/User/order_list',array('type'=>'WAITPAY'))}">
                            <span>{$user.waitPay}</span>
                            <img src="__STATIC__/images/q1.png" alt="" />
                            <p>待付款</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:U('Mobile/User/order_list',array('type'=>'WAITSEND'))}">
                            <span>{$user.waitSend}</span>
                            <img src="__STATIC__/images/q4.png" alt="" />
                            <p>待发货</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:U('/Mobile/User/wait_receive',array('type'=>'WAITRECEIVE'))}">
                            <span>{$user.waitReceive}</span>
                            <img src="__STATIC__/images/q2.png" alt="" />
                            <p>待收货</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:U('Mobile/User/comment',array('status'=>0))}">
                            <span>{$user.uncomment_count}</span>
                            <img src="__STATIC__/images/q3.png" alt="" />
                            <p>待评价</p>
                        </a>
                    </li>
                    
                </ul>
            </div>
            <!--订单管理模块-e-->

            <!--资金管理-s-->
            <div class="floor myorder ma-to-20 p">
                <div class="content30">
                    <div class="order">
                        <a href="{:U('Mobile/User/account')}">
                        <div class="fl">
                            <img src="__STATIC__/images/mwallet.png"/>
                            <span>我的财富</span>
                        </div>
                        <div class="fr">
                            <!--<a href="bankrollmm.html">-->                            
                                <span style="color: rgba(217,81,99,0.9);">余额:{$user['user_money']}</span>
                                <i class="Mright"></i>                            
                        </div>
                        </a>
                    </div>
                </div>
            </div>
            <div class="floor w3">
                <ul>
                    <!-- <li>
                        <a href="{:U('Mobile/User/account')}">
                            <h2>{$user['user_money']}</h2>
                            <p>余额</p>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href="{:U('Mobile/User/coupon')}">
                            <h2>{$user['coupon_count']}</h2>
                            <p>优惠券</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:U('Mobile/User/points_list')}">
                            <h2>{$user['pay_points']}</h2>
                            <p>积分</p>
                        </a>
                    </li> -->
                </ul>
            </div>
            <!--资金管理-e-->
            <!--库存管理-s-->
        <!--     <div class="floor myorder ma-to-20 p">
                <div class="content30">
                    <div class="order">
                    <a href="{:U('Mobile/User/kucun')}">
                        <div class="fl">
                            <img src="__STATIC__/images/q6.png"/>
                            <span>我的库存</span>
                        </div>
                        <div class="fr">
                            <a href="bankrollmm.html">                            
                                <span>库存管理</span>
                                <i class="Mright"></i>                            
                        </div>
                    </a>
                    </div>
                </div>
            </div> -->
            <!--库存管理-e-->

            <div class="floor list7 ma-to-20">
<!--                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/User/distribution')}" >
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w1.png"/>
                                    <span>我的分销</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>-->
                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/Distribution/index')}" >
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w1.png"/>
                                    <span>我的团队</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <!-- <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/User/comment',array('status'=>1))}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w2.png"/>
                                    <span>我的评价</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div> -->
                <!-- <if condition="$user.level eq 2 ">
                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/user/vip')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w5.png"/>
                                    <span>VIP套餐</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                </if> -->
               <!--   <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/user/extended',array('id'=>$user['user_id']))}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w5.png"/>
                                    <span>推广二维码</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>  -->
<!--                 <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/Goods/integralMall')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w5.png"/>
                                    <span>积分商城</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div> -->
               <!--  <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/Activity/coupon_list')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w7.png"/>
                                    <span>领券中心</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div> -->
                 <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/Article/articlecat')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w2.png"/>
                                    <span>资讯中心</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/User/address_list')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w8.png"/>
                                    <span>地址管理</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/User/address_list')}">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w3.png"/>
                                    <span>帮助中心</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>

                <!--
                <div class="myorder p">
                    <div class="content30">
                        <a href="">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w3.png"/>
                                    <span>我的预售</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="myorder p">
                    <div class="content30">
                        <a href="">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w4.png"/>
                                    <span>我的拼团</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="myorder p">
                    <div class="content30">
                        <a href="">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w6.png"/>
                                    <span>帮助中心</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="myorder p">
                    <div class="content30">
                        <a href="">
                            <div class="order">
                                <div class="fl">
                                    <img src="__STATIC__/images/w7.png"/>
                                    <span>意见反馈</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                -->
            </div>
        </div>
        <div class="setting">
            <div class="close">
                <a href="{:U('Mobile/User/logout')}" id="logout">安全退出</a>
            </div>
        </div>
    </div>
    <input type="hidden" id="user_address" value="{$user_address}">
    <!--底部导航-start-->
    <include file="public/footer_nav"/>
    <!--底部导航-end-->
    <script src="__STATIC__/js/style.js" type="text/javascript" charset="utf-8"></script>
    <!-- <script type="text/javascript">
    
        wx.config({
          debug: false,
          appId: '<?php echo $signPackage["appId"];?>',
          timestamp: '<?php echo $signPackage["timestamp"];?>',
          nonceStr: '<?php echo $signPackage["nonceStr"];?>',
          signature: '<?php echo $signPackage["signature"];?>',
          jsApiList: ['checkJsApi','openLocation','getLocation']
        });
    
        wx.ready(function(){
            var user_address=$('#user_address').val();
            if(user_address==''||user_address==0){
                wx.checkJsApi({
                    jsApiList: [
                        'getLocation'
                    ],
                    success: function (res) {
                        if (res.checkResult.getLocation == false) {
                            alert('你的微信版本太低，不支持微信JS接口，请升级到最新的微信版本！');
                            return;
                        }
                    }
                });
                wx.getLocation({
                    success: function (res) {
                      var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
                      var longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
                      var speed = res.speed; // 速度，以米/每秒计
                      var accuracy = res.accuracy; // 位置精度
                        $.ajax({
                            type : 'get',
                            url : '/index.php?m=mobile&c=user&a=weixin_address&latitude='+latitude+'&longitude='+longitude,
                            dataType : 'json',
                            success : function(data){
    
                            },
                        });                
                    },
                    cancel: function (res) {
                      alert('用户拒绝授权获取地理位置');
                      self.location='/';
                    }
                });
                // var ua = window.navigator.userAgent.toLowerCase();
                // if(ua.match(/MicroMessenger/i) == 'micromessenger'){
                //     $("#wx").css('display','block');
                // }
            } 
    
        });
    </script> -->
</body>
</html>
